package com.iter.devbox.util;

import java.util.Calendar;

public class MyCalendar {

	//下周四是周几的方法
	public static void main(String[] args) {
		Calendar calendar = Calendar.getInstance();
		int day = calendar.get(Calendar.DAY_OF_WEEK);
		int temp = 0;
		if (day < Calendar.THURSDAY) {
			temp = Calendar.THURSDAY - day;
		} else if (day > Calendar.THURSDAY) {
			temp = Calendar.THURSDAY + (7-day);
		} else {
			temp = 7;
		}
		calendar.add(Calendar.HOUR, temp*24);
		System.out.println(day);
		System.out.println(calendar.get(Calendar.DAY_OF_MONTH));
	}
}
